The imagedir and userdatadir variables are not fetched from
constants/environment but created with g_strdup*/g_build*. Acknowledge that
and also free the strings in finalize.
ShellWM *wm;
GSettings *settings;
const char *datadir;
- const char *imagedir;
- const char *userdatadir;
+ char *imagedir;
+ char *userdatadir;
GFile *userdatadir_path;
GFile *runtime_state_path;
g_clear_object (&global->userdatadir_path);
g_clear_object (&global->runtime_state_path);
+ g_free (global->session_mode);
+ g_free (global->imagedir);
+ g_free (global->userdatadir);
+
G_OBJECT_CLASS(shell_global_parent_class)->finalize (object);
}